Declarations of new types: Structures
Pascal C/C++
wtype
w student = record
w id: packed array[1..10] of char;
w gpa: real
w end;
w
wvar
w someone: student;
struct student
{ int id;
   char name[11];
  float gpa;
} someone;
OR
1. In C, the difference between these examples is that the first creates a new type named simply “student”, while the second two create a new type whose name is “struct student”. The third example combines the type and variable declarations into one declaration.
2. In C++, all three examples create a new type that can be called EITHER student or struct student.